package service.impl;

import mapper.DepartmentMapper;
import model.Department;
import org.springframework.stereotype.Service;
import org.springframework.web.context.request.RequestContextHolder;
import service.DepartmentService;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DepartmentServiceImpl implements DepartmentService {
    @Resource
    private DepartmentMapper mapper;
    @Override
    public List<Department> findAll() {
        return mapper.findAll();
    }
}
